package com.xbongbong.pro.simulationproduce.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.product.pojo.dto.MaterielDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/4/25 10:03
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ProductionOrderAddGetDTO extends BaseDTO {

    private static final long serialVersionUID = -8210407814930557462L;
    private Long dataId;

    /**
     * 可生产数量
     */
    @NotNull(message = "{dto.msg.productionOrderAddGet.canNum.NotNull}")
    @Min(value = 0, message = "{dto.msg.productionOrderAddGet.canNum.Min}")
    private Double canNum;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.productionOrderAddGet.businessType.NotNull}")
    private Integer businessType;
    /**
     * 子业务类型
     */
    private Integer subBusinessType;

    /**
     * 关联的业务类型
     */
    @NotNull(message = "{dto.msg.productionOrderAddGet.linkBusinessType.NotNull}")
    private Integer linkBusinessType;

    private List<MaterielDTO> materiel;


}
